package hb.software.teacher.controller;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RestController;

import hb.software.teacher.entity.Teacher;
import hb.software.teacher.service.TeacherManager;
import web.GenericController;


@RestController
@RequestMapping("/teacher")
public class TeacherController extends GenericController<Teacher, Long, TeacherManager> {


	
	TeacherManager teacherManager;
	@Autowired
	public void setTeacherManager(TeacherManager teacherManager) {
		this.teacherManager = teacherManager;
		this.manager = this.teacherManager;
	}
	
	@RequestMapping(method = RequestMethod.GET, value = "/index.html")
	public String index() {
		String result = "/teacher/index";
		return result;
	}


}